package com.jingbit.ai.entities;

import android.text.TextUtils;

/**
 * 通话记录信息
 */
public class CallLogInfo extends BaseInfo {
    private String name;
    private String phoneno;
    private String duration;//通话时长
    private String date;
    private String type;//来电还是播出

    public String getName() {
        if (TextUtils.isEmpty(name))
            return "未备注联系人";
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneno() {
        return phoneno;
    }

    public void setPhoneno(String phoneno) {
        this.phoneno = phoneno;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}